package com.zhang.util;

import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

/**
 * User: 张
 * Date: 2024-11-28
 * Time: 11:37
 * Description:
 */
@Component
public class QuartzUtil {
    @SuppressWarnings("unchecked")
    public static Class<? extends QuartzJobBean> getClass(String classname) throws Exception {
        classname = "com.zhang.quartz.MyJob";
        Class<?> class1 = Class.forName(classname);
        return (Class<? extends QuartzJobBean>) class1;
    }
}
